package com.data4.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.data4.feignapi.dto.OrderDTO;
import com.data4.feignapi.dto.Result;
import com.data4.feignapi.entity.DOrder;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Forever
 * @since 2024-12-11
 */
public interface DOrderService extends IService<DOrder> {

    Result addOrder(OrderDTO orderDTO, Integer userId);

    Result getOrderDetail(Integer orderId, Integer userId);

    Result getOrderByTime(Long current, Long num, Integer userId);

    Result getOrderByProductName(Integer productCurrent, Integer productPageNum,
                                 String productName, Integer userId);

    Result getProductGroup(List<String> groupIds,Integer userId);

    Result getOrderByPriceScope(Integer current, Integer num, Integer little, Integer big, Integer userId);
}
